package org.chy.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * http://blog.csdn.net/qq_34912469/article/details/75666506
 * 使用jpa定义用户,实现UserDetails接口,用户实体即为SpringSecurity所使用的用户
 * @author chenghy
 * @date 2018年01月07日 12时32分36秒
 * @Description 发上等愿,结中等缘,享下等福;向高处立,就平处坐,从宽处行.
 * @Package org.chy.entity
 */
@Table(name = "sys_user")
@Entity(name = "User")
public class User extends BaseEntity {

	private static final long serialVersionUID = 3048421986655597567L;

	@Column(name = "username")
	private String username;

	@Column(name = "password")
	private String password;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	
}
